package com.warrior.gatherweb.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName com.warrior.gatherweb.vo.PMetricVo.java
 * @Author xujian
 * @Description
 * @CreateTime 2021年01月04日 17:37:00
 */
@Data
@NoArgsConstructor
public class PMetricVo {

    private String typeName;

    private String typeVale;

    private List<MetricVo> children = new ArrayList<>();

    public PMetricVo(String typeName, String typeVale){
        this.typeName = typeName;
        this.typeVale = typeVale;
    }

    public PMetricVo add(MetricVo metricVo){
        this.children.add(metricVo);
        return this;
    }

}
